<?php if ($this->vars['result']): ?>
  <select>
  <?php foreach ($this->vars['result'] as $list): ?>
    <!-- <?php print_r($list['title']) ?> -->
    <option value ="<?php $list['title'] ?>"><?= $list['title'] ?></option>
  <?php endforeach ?>
  </select>
<?php else: ?>
    nothing
<?php endif ?>
